using Publicuse.Util;

namespace Geekeradmin.Middleware
{
    /// <summary>
    /// 中间件注入
    /// </summary>
    public static class MiddlewareWareExtesions
    {
        /// <summary>
        /// 使用中间件
        /// </summary>
        /// <param name="builder"></param>
        /// <returns></returns>
        public static IApplicationBuilder UseAMiddleWare(this IApplicationBuilder builder)
        {
            return builder.UseMiddleware<PhotoatcMiddleWare>().UseMiddleware<RealIpMiddleware>();
        }
    }
}
